package com.ohuang.util_a.task;

/**
 * onCall只回调一次
 */
public abstract class OnceTaskCallBack implements TaskCallBack {
    boolean isCall = false;
    @Override
    public void onNext() {
        if (!isCall) {
            isCall = true;
            onCall();
        }
    }

   public abstract void onCall();
}
